package com.young.service;

import com.young.dao.UserDao;
import com.young.datasource.DataSource;
import com.young.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@DataSource("datasource2")
@Service
public class UserServiceImpl2 implements UserService2 {
	@Autowired  
    private UserDao userDao;
  
    public User selectUserById(Integer userId) {
        return userDao.selectUserById(userId);  
          
    }
}
